package com.edu.design.decorator.case2;

/**
 * 装饰类还是把动作的执行委托给需要装饰的对象
 * @author Administrator
 *
 */
public class DecoratorCondiment extends SchoolReport{
	
	SchoolReport schoolReport;//被装饰类
	
	public DecoratorCondiment(SchoolReport pSchoolReport) {
		super();
		schoolReport = pSchoolReport;
	}

	@Override
	void report() {//看成绩单（动作）
		schoolReport.report();
	}

	@Override
	void sign(String pName) {//签名（动作）
		schoolReport.sign(pName);
	}

}
